package ibm.websphere.monitor.filter;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * <pre>
 *	@Description //
 * </pre>
 * @copyright www.timotai.net
 * @author 这家伙真懒
 * @date 2016-1-12
 **/
public class MonitorFilter implements Filter {

    public void destroy() {

    }

    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {
        HttpServletRequest request = (HttpServletRequest) req;
        HttpServletResponse respose = (HttpServletResponse) resp;
        System.out.println("Request: "+ request);
        chain.doFilter(req, resp);
    }

    public void init(FilterConfig arg0) throws ServletException {

    }

}
